﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HookupAppForm.Dto
{
    public class CreateHKP_CategoryDto
    {
        public string CateIndex { get; set; }
        public string CateName { get; set; }
        public string Layout { get; set; }
        public long ParentId { get; set; }
        public int OrderIndex { get; set; }
    }
    public class HKP_CategoryDto
    {
        public string CateIndex { get; set; }
        public string CateName { get; set; }
        public string Layout { get; set; }
        public long ParentId { get; set; }
        public int OrderIndex { get; set; }
        public long Id { get; set; }
    }

    public class CategoryTreeDto
    {
        public long Id { get; set; }
        /// <summary>
        /// 分类索引
        /// </summary>
        public string CateIndex { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string CateName { get; set; }
        /// <summary>
        /// 所属模块
        /// </summary>
        public string Layout { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public int ParentId { get; set; } = 0;
        /// <summary>
        /// 排序序号
        /// </summary>
        public int OrderIndex { get; set; }
        public int Childs { get; set; }
        public List<CategoryTreeDto> Children { get; set; }
    }

}
